package com.windea.study.springcloud.feign.controller;

import com.windea.study.springcloud.feign.feign.HelloFeign;
import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {
	private final HelloFeign helloFeign;

	//这里的报错可以无视，也可以添加@Qualifier
	public HelloController(HelloFeign helloFeign) {
		this.helloFeign = helloFeign;
	}

	@GetMapping("/hello")
	public String hello(@RequestParam String name) {
		return helloFeign.hello(name);
	}
}
